// 自动生成模板SmsSkuLadder
package biz

import "github.com/go-kratos/kratos/v2/log"

// smsSkuLadder表 结构体  SmsSkuLadder
type SmsSkuLadder struct {
	Id        *int     `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`                     //id
	SkuId     *int     `json:"skuId" form:"skuId" gorm:"comment:spu_id;column:sku_id;size:19;"`                  //spu_id
	FullCount *int     `json:"fullCount" form:"fullCount" gorm:"comment:满几件;column:full_count;size:10;"`         //满几件
	Discount  *float64 `json:"discount" form:"discount" gorm:"comment:打几折;column:discount;size:4;"`              //打几折
	Price     *float64 `json:"price" form:"price" gorm:"comment:折后价;column:price;size:18;"`                      //折后价
	AddOther  *bool    `json:"addOther" form:"addOther" gorm:"comment:是否叠加其他优惠[0-不可叠加，1-可叠加];column:add_other;"` //是否叠加其他优惠[0-不可叠加，1-可叠加]
}

// TableName smsSkuLadder表 SmsSkuLadder自定义表名 sms_sku_ladder
func (SmsSkuLadder) TableName() string {
	return "sms_sku_ladder"
}

type SmsSkuLadderRepo interface {
}

type SmsSkuLadderUsecase struct {
	repo SmsSkuLadderRepo
	log  *log.Helper
}

func NewSmsSkuLadderUsecase(repo GreeterRepo, logger log.Logger) *SmsSkuLadderUsecase {
	return &SmsSkuLadderUsecase{repo: repo, log: log.NewHelper(logger)}
}
